package com.starnet.yarnmonitor.yarn.vo;

import lombok.Data;

/***
 * 节点信息
 */
@Data
public class NodeVO {
    //http://ip:port/yarn/cluster/nodes 官方api

    //机架名
    private String rack;
    //状态
    private String state;
    //节点id
    private String id;
    //节点主机名
    private String nodeHostName;
    //节点Http地址
    private String nodeHTTPAddress;
    //最新健康心跳时间
    private String lastHealthUpdate;
    //版本号
    private String version;
    //健康报告
    private String healthReport;
    //容器数量
    private Integer numContainers;
    //已用内存MB
    private Integer usedMemoryMB;
    //最大内存MB
    private Integer availMemoryMB;
    //已用虚拟核心
    private Integer usedVirtualCores;
    //最大虚拟核心
    private Integer availableVirtualCores;
    //节点物理内存
    private Integer nodePhysicalMemoryMB;
    //节点虚拟内存
    private Integer nodeVirtualMemoryMB;
    //节点cpu使用
    private Double nodeCPUUsage;
    //所有容器聚合使用物理内存MB
    private Integer aggregatedContainersPhysicalMemoryMB;
    //所有容器聚合使用虚拟内存MB
    private Integer aggregatedContainersVirtualMemoryMB;
    //所有容器CPU使用率
    private Double containersCPUUsage;


}
